<?php
function findUser($uid){
	include ("conn.php");
	//下面是读取数据
	$sql = "SELECT * FROM user WHERE id=".$uid;
	$result = $conn->query($sql);
	$arr = array(); 
	if ($result->num_rows == 1) {
	    // 输出数据
	    $row = $result->fetch_assoc();
	    array_push($arr,$row['id'],$row['nickName'],$row['avatarUrl'],$row['gender'],$row['province'],$row['city'],$row['country']);
	}
	return $arr;
}

?>